/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.comut.crud.pojo.driver;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author asantos
 */
@XmlRootElement( )
@XmlAccessorType(XmlAccessType.FIELD)
public class Driver_group implements Serializable{
    
    private static final long serialVersionUID = 123236;
    
    //driver_group
     private int id_group = -1;
     private String internal_number= null;
     private String name= null;
     private String tag= null;
     private String activity_date_begin= null;
     private String activity_date_end= null;
     private String phone_personal= null;
     private String phone_company= null;
     private String email= null;

    public String getActivity_date_begin() {
        return activity_date_begin;
    }

    public void setActivity_date_begin(String activity_date_begin) {
        this.activity_date_begin = activity_date_begin;
    }

    public String getActivity_date_end() {
        return activity_date_end;
    }

    public void setActivity_date_end(String activity_date_end) {
        this.activity_date_end = activity_date_end;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getId_group() {
        return id_group;
    }

    public void setId_group(int id_group) {
        this.id_group = id_group;
    }

    public String getInternal_number() {
        return internal_number;
    }

    public void setInternal_number(String internal_number) {
        this.internal_number = internal_number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone_company() {
        return phone_company;
    }

    public void setPhone_company(String phone_company) {
        this.phone_company = phone_company;
    }

    public String getPhone_personal() {
        return phone_personal;
    }

    public void setPhone_personal(String phone_personal) {
        this.phone_personal = phone_personal;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    @Override
    public String toString() {
        return "Driver_group{" + "id_group=" + id_group + ", internal_number=" + internal_number + ", name=" + name + ", tag=" + tag + ", activity_date_begin=" + activity_date_begin + ", activity_date_end=" + activity_date_end + ", phone_personal=" + phone_personal + ", phone_company=" + phone_company + ", email=" + email + '}';
    }     
     
    public boolean isValid(){
        if(id_group !=-1)
            return true;
        return false;
    }
     
}

